package com.xh.bussiness.permission.service;



import com.xh.bussiness.permission.bean.request.RoleRequest;
import com.xh.bussiness.permission.model.Role;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;

public interface IRoleService extends IBaseService<Role> {


    /**
     * 分页查询角色
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryRolePage(XhPage page, RoleRequest bean);


    /**
     * 查询角色
     * @param bean
     * @return
     */
    public List queryRole(RoleRequest bean);


    /**
     * 新增角色
     * @param bean
     * @return
     */
    public String addRole(RoleRequest bean);


    /**
     * 修改角色
     * @param bean
     * @return
     */
    public  String modifyRole(RoleRequest bean);


    /**
     * 删除角色
     * @param id
     * @return
     */
    public  String deleteRole(String id);

    Role queryByThirdId(String lwRoleId);
}
